...
Just my blog

Blog about everything, mostly about tech stuff I made. Here is the list of stuff I'm using at my blog. Feel free to ask me about implementations.

Soft I recommend
Py lib I recommend

I'm using these libraries so you can ask me about them.

Oh my gosh BACULA config

Recently finished bacula config and run first one successfully! I'm really do not understand now, why does this tool have a complicated system with batch of daemons and modules. For my opinion, backup tool just should know from where to wherever make a backup and how often. But for further usage and remember this config, I'll add it here. [caption id="" align="alignnone" width="428"]Bacula config Bacula config[/caption]   Is is just a reminder, not a how-to, just want to not forget this. Job configs is not so complicate, intuitively understandable.

Director

bacula-dir.conf

[su_spoiler title="Code" icon="chevron"]

Director {                            # define myself
  Name = tet-redmine-dir
  DIRport = 9101
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = /var/lib/bacula
  PidDirectory = "/var/run/bacula"
  Maximum Concurrent Jobs = 1
  Password = "tet-redmine-director"         # Console password
  Messages = Daemon
  DirAddress = 127.0.0.1
}
Storage {
  Name = File
# Do not use "localhost" here
  Address = 127.0.0.1
  SDPort = 9103
  Password = tet-redmine-storage
  Device …

Read...

Порядочек в тасках

Так выглядит условный порядок в моих тасках на редмайне, сохраню его, чтобы не потерять. Dev_redmine

Read...

Redmine update 3.0.1

Redmine Update

Great, there is a new Redmine 3.0.1 published!

[su_note]Note! Redmine 3.0.1 has A LOT of unsupported plugins from old versions! Better remove them all and update it without plugins and than move back one by one.[/su_note] Some plugins can produce error like: [su_spoiler title="rake generate_secret_token"]

root@tet-redmine www/redmine# rake generate_secret_token
[DEPRECATION] requiring "RMagick" is deprecated. Use "rmagick" instead
Warning: you should require 'minitest/autorun' instead.
Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
From:
  /var/lib/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
  /var/lib/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
  /var/lib/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
  /var/lib/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
  /usr/lib/ruby/1.9.1/test/unit.rb:3:in `<top (required)>'
  /var/lib/gems/1.9.1/gems/bundler-1.8.1/lib/bundler/runtime.rb:85:in `require'
  /var/lib/gems/1.9.1/gems/bundler-1.8.1/lib/bundler/runtime.rb:85:in `rescue in block in require'
  /var/lib/gems/1.9.1/gems/bundler-1.8.1/lib/bundler/runtime.rb:68:in `block in require'
  /var/lib/gems/1.9.1/gems/bundler-1.8.1/lib/bundler/runtime.rb:61:in `each'
  /var/lib/gems/1.9.1/gems/bundler-1.8.1/lib/bundler/runtime.rb:61:in `require'
  /var/lib/gems/1.9.1/gems/bundler-1.8.1/lib/bundler.rb:134:in `require'
  /var/www/redmine/config/application.rb:5:in `<top (required)>'
  /var/www/redmine/Rakefile:5:in `<top (required)>'
  /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load'
  /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load_rakefile'
  /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:689:in `raw_load_rakefile'
  /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:94:in `block in load_rakefile'
  /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
  /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:93:in `load_rakefile'
  /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:77:in `block in run'
  /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
  /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
  /var/lib/gems/1.9.1/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
  /usr/local/bin/rake:23:in `load' …

Read...

Redmine, Rails, Gems - TOP comands

Устал постоянно гуглить те или иные частые команды для редмайна и его свиты, пришло время собрать их в одном месте и сохранить в закладки. Может кому-то еще пригодится. Будет обновляться, кто хочет может в комментах что-то свое добавить.

Ruby

ruby -v

[su_spoiler title="Result"]

root@tet-redmine www/redmine
# ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

[/su_spoiler]  

Rails

rails -v

[su_spoiler title="Result"]

root@tet-redmine www/redmine
# rails -v Rails 3.2.19

[/su_spoiler]  

Gems:

gem list

             

Read...

All about Atlassian JIRA 2.2

THE problem:

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

THE investigation:

This occurs when you try to run any bat\sh from the jira base dir. version.bat

THE solution: from here

For my situation, I`ve just add C:\Progra~1\Atlassian\JIRA\jre Right-click the My Computer icon on your desktop and select Properties.

  1. Click the Advanced tab.
  2. Click the Environment Variables button.
  3. Under System Variables, click New.
  4. Enter the variable name as JAVA_HOME.
  5. Enter the variable value as the installation path for the Java Development Kit.
    • If your Java installation directory has a space in its path name, you should use the shortened path name (e.g.C:\Progra~1\Java\jre6) in the environment variable instead.
      Note for Windows users on 64-bit systems Progra~1 = 'Program Files' Progra~2 = 'Program Files(x86)'
  6. Click OK.
  7. Click Apply Changes.
  8. Close any command window which was open …

Read...

All about Atlassian JIRA 2.1 - Atlassian JIRA "AJiraLockedError" and JIRA Startup Failed

Продолжаем мучать свой мозг новыми сюрпризами от JIRA или это я просто такой неудачник: Причина:

JIRA Startup Failed
The following plugins are required by JIRA, but have not been started:
Atlassian JIRA - Plugins - Gadgets Plugin (com.atlassian.jira.gadgets)
Atlassian Navigation Links Plugin (com.atlassian.plugins.atlassian-nav-links-plugin)
Atlassian JIRA - Plugins - Issue Search (com.atlassian.jira.jira-issue-nav-plugin)
Atlassian JIRA - Plugins - Quick Edit Plugin (com.atlassian.jira.jira-quick-edit-plugin)
Atlassian REST - Module Types (com.atlassian.plugins.rest.atlassian-rest-module)
JIRA Project Config Plugin (com.atlassian.jira.jira-project-config-plugin)
Atlassian JIRA - Plugins - REST Plugin (com.atlassian.jira.rest)
Opensocial Plugin (com.atlassian.gadgets.opensocial)
Applinks Product Plugin (com.atlassian.applinks.applinks-plugin)
Atlassian OAuth Service Provider Plugin (com.atlassian.oauth.serviceprovider)
Embedded Gadgets Plugin (com.atlassian.gadgets.embedded)
Gadget Directory Plugin (com.atlassian.gadgets.directory)
Gadget Dashboard Plugin (com.atlassian.gadgets.dashboard)

Способ из этого моего поста  может быть бессилен. Копаю дальше. Как оказалось, Jira крайне требовательна к ресурсам, жадная тварь! Еще можно попробовать поиграться с настройками: set JVM_MINIMUM_MEMORY=256m set JVM_MAXIMUM_MEMORY=1024m но лучше ставить Jira сразу на центос, меньше гемора потом.    

Read...

All about Atlassian JIRA 2

Первые пролблемы возникают на Windows. Линуксовая установка работает норм.

JIRA Startup Failed
The following plugins are required by JIRA, but have not been started:

Atlassian JIRA - Plugins - Gadgets Plugin (com.atlassian.jira.gadgets)
Atlassian Navigation Links Plugin (com.atlassian.plugins.atlassian-nav-links-plugin)
Atlassian JIRA - Plugins - Quick Edit Plugin (com.atlassian.jira.jira-quick-edit-plugin)
Gadget Directory Plugin (com.atlassian.gadgets.directory)

Win_Problems.PNG Первая возможная причина, как может показаться - нехватка ресурсов оперативной памяти, и как говорит хелп: читать нужно или дать больше РАМ или увеличить время для старта всех плагинов. Так как на виндовой машине у меня 4 Гб рам, а на Центосе всего 2 и все работает, я решил не идти на поводу жадной твари, и просто увеличить время:

Plugins require more time to startup:

Resolution You would have to edit some parameters so that JIRA provides more time for the plugins to be extracted, instead of cutting it off and assuming that it failed to startup. To do so, please insert …

Read...

All about Atlassian JIRA

Atlassian JIRA

Пришло время взяться за исследование своего первого продукта на работке. На этот релиз мне выпала Atlassian JIRA вот она на фиц. сайте. В пользу продукта говорит то, что его очень просто установить, что он имеет бесплатную версию для некоммерческого использования и доступен как для Windows так и для Linux. По ходу работы мне предстоит выковырять из продукта всю необходимую информацию, после того как он будет установлен и настроен:

  • install root - win+linux
  • version:
    • package
    • active
    • log or .reg
  • license

И пока все на этом, если дальше будут усложнять, то нужно будет, возможно проследить еще и каки-нибудь зависимости. Итак, установка:

стоит сразу сказать, что установка до неприличного простая на обеих ОС, нужно просто скачать на указанном выше сайте самоустановщики-распаковщики требуемые для версий ОС - .exe и .bin.

Windows:

В винде достаточно просто следовать подсказкам, продукт установится под томкатом, вот так:

Windows_Install.PNG

 Из опций доступны просто ярлыки в меню Пуск: …

Read...

Update Redmine 2.6*

Redmine_2_6Как-то совсем упустил момент, когда вышли 2 новых версии редмайна с кучей исправлений и вот обновляху сделал. Кое-какие моменты могут обмать процесс, но общий порядок действий прежний, как описан здесь: http://www.trianglesis.org.ua/update-redmine-2-5-2 Возможные проблемы, некоторые исходят из прошлого гайда, чтобы не ругали меня, что я сломал вам редмайн. Смотрим:  

root@tet-redmine www/redmine# bundle install --without development test
You cannot specify the same gem twice with different version requirements.
You specified: shoulda-matchers (= 1.4.1) and shoulda-matchers (>= 0)

Решается просто закомментированием этих строк. Следующий конфликт начнется от того, что в прошлый раз я во время инсталляции просто руками указал версии, и сейчас файл жестко их использует. Нужно также изменить руками версии в файле gemfile.lock все версии на требуемые ниже:

root@tet-redmine www/redmine# bundle install --without development test
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
You have requested:
  rails = 3.2.21
The bundle currently has rails locked at 3.2.19. …

Read...

Y.A. great plugin for Redmine!

Yet another great plugin for Redmine just teached me how to add tables and columns manually into MySQL db. mysql-redmine This is "nice" plugin: Issue Templates Have a great issue: error 500 And YES it have been migrated!

root@tet-redmine www/redmine# rake redmine:plugins:migrate RAILS_ENV=production
Migrating hooks_manager (Hooks manager)...
Migrating redmine_ckeditor (Redmine CKEditor plugin)...
Migrating redmine_digest (Digest plugin)...
Migrating redmine_issue_checklist (Redmine Issue Checklist plugin)...
Migrating redmine_issue_templates (Redmine Issue Templates plugin)...
Migrating redmine_lightbox (Redmine Light Box plugin)...
Migrating redmine_omniauth_ulogin (Redmine Omniauth uLogin plugin)...
Migrating redmine_open_links_in_new_window (Redmine Open Links In New Window plugin)...
Migrating redmine_people (Redmine People plugin)...
Migrating sidebar_hide (Sidebar Hide Plugin)...

But did not works! And I spent about 3hrs of my sleeping to find a roocause. You can see picrelated - Ive added those tables - manyally! How to figureout this issue see the production.log

Completed 500 Internal Server Error in 4.7ms ActiveRecord::StatementInvalid(Mysql2::Error: Table 'redmine_production.global_issue_templates' doesn't exist: SHOW FULL FIELDS FROM `global_issue_templates`):
  • be sure …

Read...